package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.domain.ComponentParameterDetail;
import com.zoo.diannaopeijian.domain.ComponentParameterDetailExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface ComponentParameterDetailMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @SelectProvider(type=ComponentParameterDetailSqlProvider.class, method="countByExample")
    int countByExample(ComponentParameterDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @DeleteProvider(type=ComponentParameterDetailSqlProvider.class, method="deleteByExample")
    int deleteByExample(ComponentParameterDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @Delete({
        "delete from component_parameter_detail",
        "where ComponentParameterDetailId = #{componentparameterdetailid,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer componentparameterdetailid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @Insert({
        "insert into component_parameter_detail (ComponentParameterDetailId, ",
        "ComponentParameterId, ComponentParameterDetailName)",
        "values (#{componentparameterdetailid,jdbcType=INTEGER}, ",
        "#{componentparameterid,jdbcType=INTEGER}, #{componentparameterdetailname,jdbcType=VARCHAR})"
    })
    int insert(ComponentParameterDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @InsertProvider(type=ComponentParameterDetailSqlProvider.class, method="insertSelective")
    int insertSelective(ComponentParameterDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @SelectProvider(type=ComponentParameterDetailSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ComponentParameterDetailId", property="componentparameterdetailid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ComponentParameterId", property="componentparameterid", jdbcType=JdbcType.INTEGER),
        @Result(column="ComponentParameterDetailName", property="componentparameterdetailname", jdbcType=JdbcType.VARCHAR)
    })
    List<ComponentParameterDetail> selectByExample(ComponentParameterDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "ComponentParameterDetailId, ComponentParameterId, ComponentParameterDetailName",
        "from component_parameter_detail",
        "where ComponentParameterDetailId = #{componentparameterdetailid,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="ComponentParameterDetailId", property="componentparameterdetailid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ComponentParameterId", property="componentparameterid", jdbcType=JdbcType.INTEGER),
        @Result(column="ComponentParameterDetailName", property="componentparameterdetailname", jdbcType=JdbcType.VARCHAR)
    })
    ComponentParameterDetail selectByPrimaryKey(Integer componentparameterdetailid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterDetailSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ComponentParameterDetail record, @Param("example") ComponentParameterDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterDetailSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ComponentParameterDetail record, @Param("example") ComponentParameterDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterDetailSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(ComponentParameterDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter_detail
     *
     * @mbggenerated
     */
    @Update({
        "update component_parameter_detail",
        "set ComponentParameterId = #{componentparameterid,jdbcType=INTEGER},",
          "ComponentParameterDetailName = #{componentparameterdetailname,jdbcType=VARCHAR}",
        "where ComponentParameterDetailId = #{componentparameterdetailid,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(ComponentParameterDetail record);
}